import request from "@/utils/request";

export function login(data) {
  return request({
    url: "/api/admin/login",
    method: "post",
    data,
  });
}
export function logout(data = {}) {
  return request({
    url: "/api/admin/logout",
    method: "post",
    data,
  });
}

export function changePassword(data = {}) {
  return request({
    url: "admin/auth/changePassword",
    method: "post",
    data,
  });
}

export function getOssSts(data = {}) {
  return request({
    url: "api/aliyun/config/getSts",
    method: "get",
  });
}

// 上传附件
export function uploadAccessory(data = {}) {
  return request({
    url: "api/accessory/upload",
    method: "post",
    data,
  });
}



